package com.iflytek.iot.common.constants;

/**
 * @author yu 2018/11/30.
 */
public interface BaseErrorCode {

    enum common implements IMessage {

        SUCCESS("0000", "succeed"),

        PARAM_EMPTY("1001", "必选参数为空"),

        PARAM_ERROR("1002", "参数格式错误"),

        UNKNOWN_ERROR("9999", "系统繁忙，请稍后再试....");

        private String errCode;
        private String errMsg;


        common(String errCode, String errMsg) {
            this.errCode = errCode;
            this.errMsg = errMsg;
        }

        @Override
        public String getErrCode() {
            return this.errCode;
        }

        @Override
        public String getErrMsg() {
            return this.errMsg;
        }
    }
}
